home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
lists
/
gem
/
l_1199
/
1172
< prev
next >
Wrap
Internet Message Format
|
1994-08-27
|
5KB
From: mforget@elfhaven.ersys.edmonton.ab.ca (Michel Forget)
Subject: Re: Digest
Date: Fri, 29 Jul 1994 06:54:02 -0600
Precedence: bulk
Hello Timothy,
>]Nope, you put EVERY function in a separate C file, roll the whole thing
>]into a .a or .lib or what have you, and then whatever functions the
>]programmer uses will be included by the linker. The linker includes
>]entire .o files, so the programmer doesn't choose, the LINKER chooses.
>]This requires libraries to have TONS of files. Makes a MINIX filesystem
>]very handy, but that is beside the point.
>
>Sounds icky, but I'll see what I can do. I think, though, I will cut it
>up after I'm done.
Actually, you will save yourself a lot of time if you do it now. A
complete library would be hard to break up if it was all in one
module. (Simply because there is so much more information to
organize.)
>But there is one thing I need to mention... some of my functions use
>other functions that only THEY use and are not needed to be accessed from
>any where else. Should I put them into the same O file?
Yes, those could go in the same source code module. As long as "public
entry points" (someone else used this term) are placed in separate
modules, and the only other functions in that module are those called
by the public entry point, you should have no problems.
>How do I create an A or LIB file? What is the difference between the
>two? I've never looked into this before.
It depends on the compiler. For GNU C, SozobonX, HSC, and c68 you
use a utility called ar.ttp and it will create the file. The documentaiton
for your compiler should explain it. Look under "archives" or "libraries"
in the index, or the table of contents.
>This sounds very interesting. I'll have to figure out Fselect.
>One problem I have with modem I/O is that GEMDOS does not seem to provide
>a way for me determine how many characters are there before using Fread.
>As a result, I have to use Fread (or Bconin) repeatedly, reading one
>character until Bconstat says there are no more characters.
Use the IOREC to get the address of the modem input buffer. Then
check that address and count the number of characters in it
yourself. It -should- work, right? (The system has to have a way
or knowing when there is no more data, so you should also be able
to use that information.)
>If I Fread x bytes from the serial port, does it wait until it gets x
>bytes or does it return after it reads as many as it can?
I think it will sit and wait forever.
>For local echo, I would have both the main program and the threaded I/O
>routine call the same function to deal with putting characters on the
>screen. I just have to be careful that they don't clash... I'd have the
>main program wait until the thread was done.
This will only work under MiNT, though.
>Where? When? I see commercial developers mentioning product releases in
>public and on announce groups all the time. PLUS, this is email, so I
>can say just about anything I want (within reason because it is KINDA
>public being on a mailing list).
There is a lot of misunderstanding about this. Apparently, only the
Usenet has a problem with advertising. On the Internet, which is
maintained by businesses, anything goes. Regardless, providing
information is not advertizing (in most situations). Now if the
comment had been "you can have a book published by me for xx dollars"
then that would be advertizing, and would probably cause problems on
the Usenet.
>You seem to have the attitude that what you say is correct and what I say
>is NOT, simply because you disagree with me.
Tim, everyone disagrees with you on this point... :) If we ever find
out the results of the vote, we can finally put this issue to rest once
and for all.
>As we all well know, humans can do some pretty stupid things (wars,
>crimes, flat-earth society, prejudice, slavery, the US congress, etc.),
>yet the fact that a few people or a majority do something doesn't make it
>right.
It -does- make it the majority, though, which is the point.
>It is QUITE CLEAR how easy it is to accidentally hit Ctrl-A, yet you wish
>to assign something as dangerous as Select-All to it?
Yes, that pretty much sums it up. Standards are not always perfect,
but if we want this one to be accepted it has to be at least somewhat
like the previous standards.
>Ani rotse harbeh kesef.
>Ich moechte vill geld.
>Don't we all?
What? Is this Hebrew? (Curiosity killed the cat, but I'd still like to
know.)
--
Michel Forget \\ mforget@elfhaven.ersys.edmonton.ab.ca //
Electric Storm Software \\ ess@tibalt.supernet.ab.ca //
PGP Public Key Finger. = 1F C0 D3 FE 40 51 7F 47 F3 4A C6 AD 6E 02 71 85